home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20021006-20030409 / 000283_fdc@columbia.edu_Tue Feb 11 11:07:13 EST 2003.msg < prev    next >
Text File  |  2020-01-01  |  2KB  |  36 lines

  1. Article: 14078 of comp.protocols.kermit.misc
  2. Path: newsmaster.cc.columbia.edu!news.columbia.edu!news-not-for-mail
  3. From: fdc@columbia.edu (Frank da Cruz)
  4. Newsgroups: comp.protocols.kermit.misc
  5. Subject: Re: C-Kermit 8 - RUN Command - Apply output to kermit variable ?
  6. Date: 11 Feb 2003 11:07:07 -0500
  7. Organization: Columbia University
  8. Lines: 19
  9. Message-ID: <b2b73b$hi0$1@watsol.cc.columbia.edu>
  10. References: <cd7b490f.0302110800.46ada4a8@posting.google.com>
  11. NNTP-Posting-Host: watsol.cc.columbia.edu
  12. X-Trace: newsmaster.cc.columbia.edu 1044979629 19072 128.59.39.139 (11 Feb 2003 16:07:09 GMT)
  13. X-Complaints-To: postmaster@columbia.edu
  14. NNTP-Posting-Date: 11 Feb 2003 16:07:09 GMT
  15. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:14078
  16.  
  17. In article <cd7b490f.0302110800.46ada4a8@posting.google.com>,
  18. Michael Benton <michael.benton@adpcl.co.uk> wrote:
  19. : I would like to run a unix command from within my kermit command file,
  20. : and whave the resulting text/output piped into a kermit variable ? Is
  21. : this possible ?
  22. :
  23. .result := \fcommand(some unix command and its args)
  24. echo \m(result)
  25.  
  26. : My Using C-Kermit book does not explain the RUN command very well. I
  27. : am trying to convert kshell scripts to kermit scripts, but there are a
  28. : lot of unix commands to be run and lots of grepping.
  29. C-Kermit 8.0 includes a GREP command; "help grep" for details.  It might
  30. have some other intrinsic commands you can use too -- COPY, RENAME,
  31. DIRECTORY, DELETE, etc -- all of these have lots of options.  Use "help"
  32. to see what they are.
  33.  
  34. - Frank
  35.